/**
 * @file OLED.h
 * @author your name (you@domain.com)
 * @brief OLED驱动头文件
 * @version 0.1
 * @date 2024-03-31
 * 
 * @copyright Copyright (c) 2024
 * 
 */
#ifndef OLED_H_2024_3_18
#define OLED_H_2024_3_18
/*硬件级IIC通讯*/

#include "stm32f10x.h"
#include "IIC.h"
#include "Delay.h"
#define OLED_Address 0x78
#define OLED_CmdAdr 0x00
#define OLED_DataAdr 0x40


void OLED_Init(void);
void OLED_WriteCmd(uint8_t Cmd);
void OLED_WriteCmd_Coiled(uint8_t* Cmd,uint16_t Length);
void OLED_WriteData(uint8_t Data);
void OLED_WriteData_Coiled(uint8_t* Data,uint16_t Length);
void OLED_SetCursor(uint8_t Y, uint8_t X);
void OLED_Clear(void);
void OLED_Show_Char_8x16(uint8_t Line,uint8_t Column,char Char);
void OLED_Show_String(uint8_t Line,uint8_t Colum,char* String);
uint32_t OLED_Num_Pow(uint32_t Cardinal,uint8_t Pow);
void OLED_Show_Num(uint8_t Line,uint8_t Column,uint32_t Show_Num,uint8_t Length);
void OLED_Show_SignNum(uint8_t Line,uint8_t Column,int32_t ShowNum,uint8_t Length);
void OLED_Show_PointNum(uint8_t Line,uint8_t Column,float Show_Num,uint8_t Z_Length,uint8_t F_Length);
#endif
